<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!--  global build of Vue where all APIs are exposed under the global Vue variable. -->
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <!-- <script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script> -->
    <!-- 可以用以下的代码去模拟 import { createApp, ref } from 'vue' -->
    
    <!-- const ref = Vue.ref;
    const createApp = Vue.createApp; -->
  

    <!--  ES modules -->
    <!-- <script type="importmap">
      {
        "imports": {
          "vue": "https://unpkg.com/vue@3/dist/vue.esm-browser.js"
          // https://unpkg.com/vue@3/dist/vue.esm-browser.prod.js
        }
      }
    </script> -->
    
    <div id="app">{{ message }}</div>
    
    <script type="module">
      //import { createApp } from 'vue'
      const ref = Vue.ref;
      const createApp = Vue.createApp;
    
      createApp({
        data() {
          return {
            message: 'Hello Vue!'
          }
        }
      }).mount('#app')
    </script>
  </body>
</html>
